$(window).ready(function(){
	$('#t1').click(function(){
		alert($('#tableSubject').jqGrid("getPageSize"));
	});
	$('#t2').click(function(){
		alert($('#tableSubject').jqGrid("getPageStart"));
	});
	$('#t3').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getQueryInfo")));
	});
	$('#t4').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getCurrentSelectRowId")));
	});
	
	
	
	$('#t5').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getAllColModel")));
	});
	$('#t6').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getColModelByIndex",4)));
	});
	$('#t7').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getColModelByName","subjectCode")));
	});
	
	
	
	$('#n1').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getAllColNames")));
	});
	$('#n2').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getHiddenColNames")));

	});
	$('#n3').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getShowColNames")));
	});
	
	$('#l1').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getAllColLabels")));

	});
	$('#l2').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getHiddenColLabels")));

	});
	$('#l3').click(function(){
		alert($.objToJSONString($('#tableSubject').jqGrid("getShowColLabels")));
	});
});

//function beforePaging4Subject() {
//	return true;
//}
//
//function beforeDblClickRow4Subject(idVal, rowNum, colNum, event) {
//	return true;
//}
//
//function beforeNew4Subject(newRowData) {
//	alert("rowid " + rowid);
//	alert("selected " + stat);
//	return true;
//}
//
//function afterNew4Subject(rowData) {
//	alert("rowid " + rowid);
//	alert("selected " + stat);
//}
//
//function afterSelectRow4Subject(rowid, stat) {
//	alert("rowid " + rowid);
//	alert("selected " + stat);
//}
//
//function beforeLoad4Subject() {
//	return true;
//}
//function afterLoad4Subject(data) {
//	alert($.objToJSONString(data));
//	alert(data);
//}
//
//function beforeSave4Subject(datas) {
//	alert(selIds)
//	return true;
//}
//function afterSave4Subject(result) {
//	alert("afterSave4Subject");
//	alert(result);
//}
//
//function beforeDelete4Subject(datas) {
//	alert(selIds)
//	return true;
//}
//function afterDelete4Subject(result) {
//	alert("afterDelete4Subject");
//	alert(result);
//}